home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Writing Formatted Text < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  939 b   |  [TEXT/ttxt]

  1. Subject:     Re: Writing Formatted Text
  2. Sent:        6/12/96 5:00 AM
  3. Received:    6/12/96 8:31 AM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Now that I am done reading, I am trying to write. I thought it would be
  9. >simpler, but I have problem connecting FW_CMemoryWriter and
  10. >FW_CWritableStream together. I have my data object write itself onto a
  11. >FW_CMemoryWriter, but then how can I get the buffer to pass to
  12. >FW_CWritableStream? Of course, I could pass my own buffer to
  13. >FW_CMemoryWriter, but I don't know in advance the length of the text my
  14. >data object will write onto the text writer.
  15.  
  16. I have solved my own problem: I use a FW_CStringWriter and then I use
  17. FW_CString::RevealBuffer to stream the text. It is very interesting that my
  18. data object ends up writing strings into a string...
  19.  
  20. Serge
  21.  
  22.